import { useEffect, useState } from "react"

export const useStr = (str,myStr='') => {
    let num=0
        let timer = setInterval(() => {
            if (num == str.length) {
                // clearInterval(timer)
                return 
            }
           
            myStr.innerHTML+=str[num]
            num++
        }, 100)
   
}



